package lab01;

/**
 * Created by admin on 2017/10/12.
 */
public class Test11 {
    public static void main(String[] args) {
       int count=1;

            for (int i=2;i<=100;i++) {
                int j;
                    for (j=2;j<i;j++){
                        if (i%j==0){
                            break;
                        }
                    }

                    if (j==i){
                        if (count%5==0){
                            System.out.println(i+"");
                            System.out.println();
                        }else{
                            System.out.println(i+"");
                        }
                        count++;
                    }
                }
            }
    }





